package com.p7.framework.permission.web.ext.shiro;

import com.p7.framework.permission.shiro.session.ExpireBusinessFacade;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author Yangzhen
 * @Description
 * @date 2019-10-23 14:37
 **/
@Service
public class ExpireBusinessFacadeImpl implements ExpireBusinessFacade {

    @Resource
    private OnlineService onlineService;

    @Override
    public void expire(Map<Object, Object> attributes) {
        if(attributes != null){
            // TODO 离线
            Object o = new Object();
            onlineService.doOffline(o);
        }
    }

}
